### Function Description

Create dangerous rule

### Request Parameters

#### Interface parameters

| Fields               | Type   | Required | Description                                                                       |
|----------------------|--------|----------|-----------------------------------------------------------------------------------|
| expression           | string | yes      | Expression                                                                        |
| script_language_list | array  | yes      | Script language:1 - shell, 2 - bat, 3 - perl, 4 - python, 5 - powershell, 6 - sql |
| description          | string | no       | Rule description                                                                  |
| action               | int    | yes      | Processing actions: 1- Scan, 2- Intercept                                         |

### Example of request

```json
{
    "expression": "rm -rf",
    "script_language_list": [
        1
    ],
    "description": "drangerous!!!",
    "action": 2
}
```

### Example of responses

```json
{
    "code": 0,
    "result": true,
    "data": {
        "id": 1,
        "expression": "rm -rf",
        "script_language_list": [
            1
        ],
        "description": "drangerous!!!",
        "action": 2,
        "status": 0,
        "creator": "admin",
        "create_time": 1695193968000,
        "last_modify_user": "admin",
        "last_modify_time": 1695193968000
    },
    "job_request_id": "xxx"
}
```

### Response Description

{% include '_generic_response.md.j2' %}

#### data

| Fields               | Type   | Never null | Description                                                                       |
|----------------------|--------|------------|-----------------------------------------------------------------------------------|
| id                   | long   | yes        | Rule id                                                                           |
| expression           | string | yes        | expression                                                                        |
| script_language_list | array  | yes        | Script language:1 - shell, 2 - bat, 3 - perl, 4 - python, 5 - powershell, 6 - sql |
| description          | string | no         | Description                                                                       |
| action               | int    | yes        | Processing actions: 1- Scan, 2- Intercept                                         |
| status               | int    | yes        | Enabling status: 0- disabled, 1- enabled                                          |
| creator              | string | yes        | Creator                                                                           |
| create_time          | long   | yes        | Created time, Unix timestamp                                                      |
| last_modify_user     | string | yes        | Last modify user                                                                  |
| last_modify_time     | long   | yes        | Last modified time, Unix timestamp                                                |
